﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApp.App.Controllers
{
    public class Articles : Controller
    {
        public Models.Entity.Common.article article=null;
        /// <summary>
        /// adfsdf
        /// </summary>
        /// <param name="id">sdfdsf</param>
        public void Index(int id)
        {
            var type_id = 1;
            if (type_id == 1)
            {
                Web.Default.Articles.ArticleAction control = new Web.Default.Articles.ArticleAction(this);
                control.Before();
                control.Article();
                control.After();
                control.Dispose();
            }
            else if (type_id == 2)
            {
                Web.Default.Articles.AttachmentAction control = new Web.Default.Articles.AttachmentAction(this);
                control.Before();
                control.Attachment();
                control.After();
                control.Dispose();
            }
            else if (type_id == 3)
            {
                Web.Default.Articles.ImageAction control = new Web.Default.Articles.ImageAction(this);
                control.Before();
                control.Image();
                control.After();
                control.Dispose();
            }
            else if (type_id == 4)
            {
                Web.Default.Articles.CommentAction control = new Web.Default.Articles.CommentAction(this);
                control.Before();
                control.Comment();
                control.After();
                control.Dispose();
            }
        }
        /// <summary>
        /// sdfasdf
        /// </summary>
        public void Article()
        {

        }
        /// <summary>
        /// asdfsdf
        /// </summary>
        public void Attachment()
        {

        }
        /// <summary>
        /// sdfsdfs
        /// </summary>
        public void Image()
        {

        }
        public void Shop()
        {

        }
        public void Comment()
        {

        }
    }
}